package com.xcdh.domain.vo;

import lombok.Data;

import java.util.List;

@Data
public class ElTree<T> {

    private Integer index ;
    private List<? extends ElTree<T>> children ;

    private T parentId ;
    private T id ;


    public boolean getLeaf() {
        return children == null || children.size() == 0;
    }


}
